コード例 #1
0
 /// <summary>
 /// Load and overwrite items from a default profile
 /// </summary>
 /// <param name="defaultProfile">The default profile object</param>
 public void LoadDefaultProfile(ProfileStore defaultProfile)
 {
     if (defaultProfile == null)
     {
         return;                                                                              // sanity, defaultProfile does not exist
     }
     LoadProfile(defaultProfile.Profile, defaultProfile.FlowBreak, defaultProfile.DispOrder); // use default Bar props
 }
コード例 #2
0
        // Copy Items is clicked
        private void ctxCopy_Click(object sender, EventArgs e)
        {
            var ctx = (sender as ToolStripItem).Owner as ContextMenuStrip;
            var col = tlp.GetColumn(ctx.SourceControl);

            // col is the profile index assuming Col 0..4 carry the profiles...
            if (col > c_NumProfiles)
            {
                return;                  // sanity
            }
            m_copyBuffer = m_flpHandler[col].GetItemsFromFlp( );
        }