private void btn_newConst_Click(object sender, EventArgs e) { ConstElement newConst = new ConstElement("Sample Text", "", ConstElement.Type.Auto); ConstCreator constCreator = new ConstCreator(ref newConst); if (constCreator.DialogResult == DialogResult.OK) { } }
public ConstCreator(ref ConstElement toEdit) { InitializeComponent(); if (toEdit != null) { Edit(ref toEdit); } else { } }
public static ConstElement Edit(ref ConstElement toEdit) { //TODO Editing of existing Const via GUI return(null); }
public ConstVault() { InitializeComponent(); ConstElement e1 = new ConstElement("Some HEX color", "#01f2dd", ConstElement.Type.Auto); ConstElement e2 = new ConstElement("RGBA, hopefully", "RGBA(102,102,102,0.2)", ConstElement.Type.Auto); }