Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_prefer_not_pattern = true:suggestion
csharp_style_prefer_extended_property_pattern = true:suggestion
csharp_style_var_for_built_in_types = false:silent
csharp_style_var_when_type_is_apparent = false:silent
csharp_style_var_elsewhere = false:silent
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_throw_expression = true:suggestion
csharp_style_prefer_null_check_over_type_check = true:suggestion
csharp_style_expression_bodied_local_functions = false:silent
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ jobs:
with:
dotnet-version: 9.0.x
- name: Lint solution
run: dotnet format --verify-no-changes
run: |
dotnet format --version
dotnet format --verify-no-changes
134 changes: 71 additions & 63 deletions src/Cellm/AddIn/UserInterface/Forms/LoginForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 26 additions & 7 deletions src/Cellm/AddIn/UserInterface/Forms/LoginForm.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
using System;
using System.Diagnostics;

// using System.Collections.Generic; // Not needed for this simple form
// using System.ComponentModel; // Not needed
// using System.Data; // Not needed
// using System.Drawing; // Might be needed if you handle graphics, but not here
// using System.Linq; // Not needed
using System.Windows.Forms;


namespace Cellm.AddIn;
namespace Cellm.AddIn.UserInterface.Forms;

public partial class LoginForm : Form
{
Expand Down Expand Up @@ -67,4 +61,29 @@ private void ForgotPassword_LinkClicked(object sender, LinkLabelLinkClickedEvent
MessageBoxIcon.Error);
}
}

private void CreateAccount_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
string signUpUrl = "https://dev.getcellm.com/signup";

try
{
// Use Process.Start to open the URL in the default browser
ProcessStartInfo psi = new ProcessStartInfo
{
FileName = signUpUrl,
UseShellExecute = true // Important for opening URLs correctly
};
Process.Start(psi);
}
catch (Exception ex)
{
// Log the error or show a message to the user
Debug.WriteLine($"Error opening create account link: {ex.Message}");
MessageBox.Show($"Could not open the create account link.\nPlease visit:\n{signUpUrl}\n\nError: {ex.Message}",
"Error",
MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}
}
54 changes: 27 additions & 27 deletions src/Cellm/AddIn/UserInterface/Forms/LoginForm.resx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
<!--
Microsoft ResX Schema

Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes

The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.

Example:

... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
Expand All @@ -26,36 +26,36 @@
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple

There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the

Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not

The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can

Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.

mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.

mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.

mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
Expand Down
Loading