private void Save() { dsConfig.dtNotesRow dr = new dsConfig.dtNotesDataTable().NewdtNotesRow(); dr.IdMsg = Id; UpdateDRFromUI(dr); Config.SaveNode(dr); }
private void Create() { dsConfig.dtNotesRow dr = new dsConfig.dtNotesDataTable().NewdtNotesRow(); //change location to center of screen int x = (int)Screen.PrimaryScreen.Bounds.Width / 2; int y = (int)Screen.PrimaryScreen.Bounds.Height / 2; Location = new Point(x, y); loadDefaultLook(); UpdateDRFromUI(dr); Id = Config.AddNode(dr); }