private void ValueChanged(object sender, EventArgs e) { if (!LoggingAccept(sender)) { return; } string temp = ""; if (sender is NumericUpDown) { var control = sender as NumericUpDown; temp = "\"" + control.Name + "\" | "; temp += "Value = " + control.Value; } else if (sender is Controls.NewToolStripNumericUpDown) { var control = sender as Controls.NewToolStripNumericUpDown; temp = "\"" + control.Name + "\" | "; temp += "Value = " + control.Value; } temp += " | Form \"" + form.Name + "\""; AddElementIndex(ref temp); // Do.AddHistory(temp); dateTime = DateTime.Now; }
private void InitializeApplicationHistory() { if (form.Name == "Editor") { Do.AddHistory("LOADED LAZY SHELL APPLICATION"); } else if (form.Name != "SpritePartitions" && form.Name != "PaletteEditor" && form.Name != "GraphicEditor" && form.Name != "TileEditor" && form.Name != "NPCEditor") { Do.AddHistory("OPENED FORM \"" + form.Name + "\""); } }
private void CheckedChanged(object sender, EventArgs e) { if (!LoggingAccept(sender)) { return; } var control = sender as CheckBox; string temp = "\"" + control.Name + "\" | "; temp += "Checked = " + control.Checked; temp += " | Form \"" + form.Name + "\""; AddElementIndex(ref temp); // Do.AddHistory(temp); dateTime = DateTime.Now; }
private void SelectedIndexChanged(object sender, EventArgs e) { if (!LoggingAccept(sender)) { return; } string temp = ""; if (sender is ComboBox) { var control = sender as ComboBox; temp += "\"" + control.Name + "\" | "; temp += "SelectedIndex = " + control.SelectedIndex; } else if (sender is Controls.NewToolStripComboBox) { var control = sender as Controls.NewToolStripComboBox; temp += "\"" + control.Name + "\" | "; temp += "SelectedIndex = " + control.SelectedIndex; } else if (sender is CheckedListBox || sender is Controls.NewCheckedListBox) { var control = sender as CheckedListBox; temp += "\"" + control.Name + "\" | "; if (control.SelectedItem == null) { return; } temp += "\"" + control.SelectedItem.ToString().Trim() + "\" = "; temp += control.GetItemChecked(control.SelectedIndex); } else if (sender is ListBox || sender is Controls.NewListBox) { var control = sender as ListBox; temp += "\"" + control.Name + "\" | "; if (control.SelectedItem == null) { return; } temp += "\"" + control.SelectedItem.ToString().Trim(); } temp += " | Form \"" + form.Name + "\""; AddElementIndex(ref temp); // Do.AddHistory(temp); dateTime = DateTime.Now; }
private void MouseDown(object sender, MouseEventArgs e) { if (!LoggingAccept(sender)) { return; } mouseDownControl = true; var control = sender as Control; string temp = "\"" + control.Name + "\" | "; temp += "MouseDown = (X:" + e.X + ",Y:" + e.Y + ")"; temp += " | Form \"" + form.Name + "\""; AddElementIndex(ref temp); // Do.AddHistory(temp); dateTime = DateTime.Now; }
private void NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { if (!LoggingAccept(sender)) { return; } var control = sender as TreeView; string text = e.Node.Text; string temp = "\"" + control.Name + "\" | "; temp += "\"" + text.Substring(0, Math.Min(30, text.Length)); if (text.Length > 30) { temp += "..."; } temp += "\""; temp += " | Form \"" + form.Name + "\""; AddElementIndex(ref temp); // Do.AddHistory(temp); dateTime = DateTime.Now; }
private void TextChanged(object sender, EventArgs e) { if (!LoggingAccept(sender)) { return; } string temp = ""; if (sender is TextBox) { var control = sender as TextBox; string text = control.Text; temp += "\"" + control.Name + "\" | "; temp += "Text = \"" + text.Substring(0, Math.Min(30, text.Length)); if (text.Length > 30) { temp += "..."; } } else if (sender is ToolStripTextBox) { var control = sender as ToolStripTextBox; string text = control.Text; temp += "\"" + control.Name + "\" | "; temp += "Text = \"" + text.Substring(0, Math.Min(30, text.Length)); if (text.Length > 30) { temp += "..."; } } temp += "\""; temp += " | Form \"" + form.Name + "\""; AddElementIndex(ref temp); // Do.AddHistory(temp); dateTime = DateTime.Now; }
private void Click(object sender, EventArgs e) { if (!LoggingAccept(sender)) { return; } string temp = ""; if (sender is Button) { var control = sender as Button; temp = "\"" + control.Name + "\""; } else if (sender is ToolStripButton) { var control = sender as ToolStripButton; temp = "\"" + control.Name + "\""; } temp += " | Form \"" + form.Name + "\""; AddElementIndex(ref temp); // Do.AddHistory(temp); dateTime = DateTime.Now; }
private void FormClosed(object sender, FormClosedEventArgs e) { Do.AddHistory("CLOSED FORM \"" + form.Name + "\""); LazyShell.Properties.Settings.Default.Save(); }