Example #1
0
 void mvp_deleteButton(LMD_MinimizeViewPanel mvp)
 {
     if (mvp.Type == LMD_MinimizeViewPanel.TYPE.VAR)
     {
         LMD_Compiling.ManagerVariables.Remove(mvp.sub_text);
     }
     content.Children.Remove(mvp);
 }
Example #2
0
        public void Add(String text, LMD_MinimizeViewPanel.TYPE type, String sub_text)
        {
            LMD_MinimizeViewPanel mvp = new LMD_MinimizeViewPanel();

            mvp.Text          = text;
            mvp.Margin        = new Thickness(2, 2, 0, 2);
            mvp.deleteButton += mvp_deleteButton;
            mvp.Type          = type;
            mvp.sub_text      = sub_text;

            content.Children.Add(mvp);
        }